{include file=member.header.html}
<script type="text/javascript">
function DropDdata(item_id)
{
	if(confirm('{$lang.drop_confirm}') == true)
	{
		var url = REAL_SITE_URL+"/index.php?app=my_favorite&act=drop";
		$.getJSON(url,{'item_id':item_id,'type':'store'},function(data){
			if(data == true){
				msg("{$lang.handle_ok}");
				setTimeout(function(){
					window.location.href=REAL_SITE_URL+"/index.php?app=my_favorite&type=store";
				},1500);
			} 
		},"json");
	}
}
</script>
<div id="page-my-favorite" class="mb10">
	<div class="page-body my-favorite-store">
		 <!--{foreach from=$collect_store item=store name=v}-->
		<dl class="webkit-box clearfix">
			<dt><a href="{url app=store&id=$store.store_id}"><img src="{$store.store_logo}" width="45" height="45"  /></a></dt>
			<dd class="ml10">
				<a href="{url app=store&id=$store.store_id}">
					<h3>{$store.store_name|escape}</h3>
				</a>
				<div class="delect"><a href="javascript:;" onclick="DropDdata('{$store.store_id}');" ></a></div>
				<p>最新宝贝</p>
				<div class="new-goods">
					<div class="control-btn">
						<a href="javacript:;" class="prev"></a>
						<a href="javacript:;" class="next"></a>
					</div>
					<ul>
						<!--{foreach from=$store.goods_list item=each name=fe_each}-->
						<li class="webkit-box clearfix">
							<!--{foreach from=$each item=goods name=fe_goods}-->
							<a href="{url app=goods&id=$goods.goods_id}"><img width="75" height="75" src="{$goods.default_image}" /></a>
							<!--{/foreach}-->
							<!--{if $smarty.foreach.fe_each.iteration gt 1}-->
							<a href="{url app=store&id=$store.store_id}" class="go-store"><span>进入店铺<br />查看更多</span></a>
							<!--{/if}-->
						</li>
						<!--{/foreach}-->
					</ul>
				</div>
			</dd>
		</dl>
		<!--{foreachelse}-->
        <div class="no-record">{$lang.no_records}</div>
        <!--{/foreach}-->
	</div>
    <!--{if $collect_store}-->
    {include file=page.bottom.html}
    <!--{/if}-->
</div>
{include file=footer.html}
